<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{GerenciarAutorizacao.page1}" id="page1">
            <ui:html binding="#{GerenciarAutorizacao.html1}" id="html1">
                <ui:head binding="#{GerenciarAutorizacao.head1}" id="head1">
                    <ui:link binding="#{GerenciarAutorizacao.link1}" id="link1" url="/resources/stylesheet.css"/>
                    <script>
                      function initAllRows() {
                       var table = document.getElementById("form1:table1");
                       table.initAllRows();
                      }
                    </script>
                </ui:head>
                <ui:body binding="#{GerenciarAutorizacao.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{GerenciarAutorizacao.form1}" id="form1">
                        <ui:panelLayout binding="#{GerenciarAutorizacao.layoutPanel1}" id="layoutPanel1" style="background-color: rgb(211, 224, 235); height: 454px; left: 208px; top: 104px; position: absolute; width: 554px; -rave-layout: grid">
                            <ui:tabSet binding="#{GerenciarAutorizacao.tabSet1}" id="tabSet1" selected="tab2" style="height: 449px; left: 0px; top: 0px; position: absolute; width: 553px">
                                <ui:tab binding="#{GerenciarAutorizacao.tab1}" id="tab1" text="Autorizações">
                                    <ui:panelLayout binding="#{GerenciarAutorizacao.layoutPanel2}" id="layoutPanel2" style="height: 411px; position: relative; width: 100%; -rave-layout: grid">
                                        <ui:textField binding="#{GerenciarAutorizacao.txtUsuario1}" id="txtUsuario1" label="Usuário:" readOnly="true"
                                            style="height: 50px; left: 4px; top: 4px; position: absolute; width: 458px" text="#{SessionBean1.colSelecionadoAutorizacao.nome}"/>
                                        <ui:textField binding="#{GerenciarAutorizacao.txtAcesso1}" id="txtAcesso1" label="Acesso:" readOnly="true"
                                            style="height: 69px; left: 4px; top: 76px; position: absolute; width: 457px" text="#{SessionBean1.colSelecionadoAutorizacao.autorizacao}"/>
                                        <ui:button action="#{GerenciarAutorizacao.btnEntrar_action}" binding="#{GerenciarAutorizacao.btnEntrar1}"
                                            id="btnEntrar1" style="height: 23px; left: 363px; top: 124px; position: absolute; width: 106px" text="Salvar"/>
                                        <ui:alert binding="#{GerenciarAutorizacao.alerta}" id="alerta"
                                            style="left: 4px; top: 356px; position: absolute; width: 542px" summary="Alerta" visible="false"/>
                                        <ui:dropDown binding="#{GerenciarAutorizacao.dropDown1}" id="dropDown1"
                                            items="#{GerenciarAutorizacao.dropDown1DefaultOptions.options}" label="Nova Autorização" style="height: 43px; left: 4px; top: 120px; position: absolute; width: 345px"/>
                                    </ui:panelLayout>
                                </ui:tab>
                                <ui:tab binding="#{GerenciarAutorizacao.tab2}" id="tab2" text="Pesquisar">
                                    <ui:panelLayout binding="#{GerenciarAutorizacao.layoutPanel3}" id="layoutPanel3" style="height: 409px; width: 100%">
                                        <ui:label binding="#{GerenciarAutorizacao.label1}" id="label1" style="left: 8px; top: 12px; position: absolute" text="Nome do Colaborador"/>
                                        <ui:textField binding="#{GerenciarAutorizacao.txtCriterio}" id="txtCriterio" style="height: 20px; left: 8px; top: 28px; position: absolute; width: 340px"/>
                                        <ui:button action="#{GerenciarAutorizacao.button1_action}" binding="#{GerenciarAutorizacao.button1}" id="button1"
                                            style="position: absolute; left: 360px; top: 28px" text="Consultar"/>
                                        <ui:button action="#{GerenciarAutorizacao.button2_action}" binding="#{GerenciarAutorizacao.button2}" id="button2"
                                            style="left: 443px; top: 28px; position: absolute" text="Autorizar"/>
                                        <ui:table augmentTitle="false" binding="#{GerenciarAutorizacao.table1}" id="table1" paginateButton="true"
                                            paginationControls="true" style="height: -4px; left: 4px; top: 56px; position: absolute; width: 539px"
                                            title="Colaboradores" width="539">
                                            <ui:tableRowGroup binding="#{GerenciarAutorizacao.tableRowGroup1}" id="tableRowGroup1" rows="10"
                                                selected="#{GerenciarAutorizacao.selectedState}" sourceData="#{SessionBean1.listaDataSourceColaboradorAuto}" sourceVar="currentRow">
                                                <ui:tableColumn binding="#{GerenciarAutorizacao.tableColumn1}" id="tableColumn1"
                                                    onClick="setTimeout(‘initAllRows()’,0)" selectId="GerenciarAutorizacao.radioButton1.id">
                                                    <ui:radioButton binding="#{GerenciarAutorizacao.radioButton1}" id="radioButton1" label=""
                                                        name="GerenciarAutorizacao.radioButton1.id" selected="#{GerenciarAutorizacao.selected}" selectedValue="#{GerenciarAutorizacao.selectedValue}"/>
                                                </ui:tableColumn>
                                                <ui:tableColumn binding="#{GerenciarAutorizacao.tableColumn2}" headerText="Nome" id="tableColumn2">
                                                    <ui:staticText binding="#{GerenciarAutorizacao.staticText1}" id="staticText1" text="#{currentRow.value['nome']}"/>
                                                </ui:tableColumn>
                                                <ui:tableColumn binding="#{GerenciarAutorizacao.tableColumn3}" headerText="Usuário" id="tableColumn3" sort="usuario">
                                                    <ui:staticText binding="#{GerenciarAutorizacao.staticText2}" id="staticText2" text="#{currentRow.value['usuario']}"/>
                                                </ui:tableColumn>
                                                <ui:tableColumn binding="#{GerenciarAutorizacao.tableColumn4}" headerText="Autorização" id="tableColumn4">
                                                    <ui:staticText binding="#{GerenciarAutorizacao.staticText3}" id="staticText3" text="#{currentRow.value['autorizacao']}"/>
                                                </ui:tableColumn>
                                            </ui:tableRowGroup>
                                        </ui:table>
                                        <ui:alert binding="#{GerenciarAutorizacao.alerta1}" id="alerta1"
                                            style="left: 4px; top: 356px; position: absolute; width: 538px" visible="false"/>
                                    </ui:panelLayout>
                                </ui:tab>
                            </ui:tabSet>
                        </ui:panelLayout>
                        <div style="left: 0px; top: 100px; position: absolute">
                            <jsp:directive.include file="menu.jspf"/>
                        </div>
                        <div style="left: 0px; top: 0px; position: absolute">
                            <jsp:directive.include file="topo.jspf"/>
                        </div>
                        <div style="left: 0px; top: 556px; position: absolute">
                            <jsp:directive.include file="rodapev.jspf"/>
                        </div>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
